All Questions
Tagged with selenium-chromedriverjava
2,121 questions
-1votes
0answers
40views
ChromeDriver fails with SessionNotCreatedException after switching to non-root user in Docker
My ChromeDriver integration in a Docker container was working perfectly until I switched from root to a non-root user using: USER new_user Now I get this error: org.openqa.selenium....
0votes
2answers
42views
Which Selenium WebDriver version for which Chrome version?
I do not understand which versions fit together here. Currently I use: <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId&...
0votes
0answers
131views
Selenium Download Not Working in Java + Spring Boot Project (Chrome 135, Selenium 4.31.0)
I'm building a Java 21 + Spring Boot 3 automation project where I use Selenium to automate Chrome. The Chrome browser opens correctly via ChromeDriver, everything was working a month ago, but now file ...
0votes
0answers
24views
Selenium 4 -Displaying org.openqa.selenium.remote.http.WebSocket$Listener onError java.net.SocketException: Connection reset
Below is the code and it is simple selenium code. Using Maven build tool. Chrome version is 134.0.6998.178 public class FirstTestCase { public static void main(String[] args) { ...
0votes
0answers
100views
How to read content from aspx page of type document which is rendering as pdf in chrome viewer using selenium java?
I have some code where clicking on a button will open the aspx page in a new tab. I'm able to download a valid pdf file by clicking on download icon in chrome viewer. The URL is dynamic and its query ...
1vote
0answers
57views
Program stopping when initializing variables from ExtentReports - 5.1.2
I'm having an annoying problem with Selenium and ExtentReports. @TestMethodOrder(MethodOrderer.OrderAnnotation.class) public class AvantewebsuiteTest { . . . private static ExtentReports extent; ...
0votes
0answers
51views
Explicit wait only working when implicit wait is present
I have an automation project in Java that uses Cucumber, JUnit 5 and Selenium. I'm automating some UI test cases for a web application. Recently I was refactoring my code and getting rid of a lot of ...
0votes
1answer
35views
Possible to set Request Headers in Selenium?
I'm trying to write a test against a site that authenticate's by checking some headers. In other frameworks it's possible to add headers to the driver but I can't see anything like that in Selenium. ...
-2votes
1answer
397views
Is it normal that Selenium gives me "NoSuchElementException" even if element.isdisplayed return me true
I am praticing Selenium following this tutorial working on this page. I am using the more recent version of Selenium (4.26), TestNG (7.10.2 and of Java JDK (Java 23) with IntellJ Community edition. ...
0votes
0answers
47views
How put bypass the local connection with the ChromeWebDriver if I haven't the IP but only an url?
I am learning test automation following a tutorial on the site TAU by applitools. I am using IntelliJ community edtion as IDE. I have to practice with TestNG so I followed the instruction writing a ...
0votes
0answers
41views
Disable built-in PDF viewer in chromedriver and download the files automatically in specified folder
I am having issues downloading the files using chromedriver. I am using below chrome preferences but it's still opening me PDF Viewer with open button. profile = {"plugins.plugins_disabled": ...
0votes
0answers
78views
Since I updated chrome to version 129, the default download directory has stopped working
Since chrome updated to version 129, I'm having trouble setting the default download folder for the Chrome driver. How should I configure this default folder now? public WebDriver newDriver() { ...
0votes
1answer
53views
Having trouble connecting to ChromerDriver
I am having trouble connecting my Selenium Java code to ChromeDriver. I was able to connect to GeckoDriver for Firefox, but now it's not working. The error occurs in this line of code: ...
0votes
1answer
45views
Not able to launch URL in selenium
I have downloaded the latest version of chromedriver and updated the chrome with the same version. Also added the selenium jar files. Getting error : Exception in thread "main" java.lang....
1vote
1answer
56views
Running java selenium testcases inside docker container via azure pipleine getting error unable to load element
This is my docker file # Base image with Maven and JDK FROM maven:3.8.4-openjdk-11 # Set the working directory in the container WORKDIR /app # Install necessary dependencies RUN apt-get update -y &...